/**
 *  Copyright 2011 Marco Berri - marcoberri@gmail.com
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
 **/
package com.mbfasttrack.model;

import java.util.Date;

/**
 * @author Marco Berri marcoberri@gmail.com http://tecnicume.blogspot.com
 */
public class Point {

    private Double ele;
    private Double fix;
    private Double sat;
    private Date time;
    private String lineId;
    private Double distanceparent;
    private Double timeparent;
    private Loc loc;

    /**
     * 
     * @return
     */
    @Override
    public String toString() {
        return "[ ele=" + ele + 
                " fix=" + fix + 
                " sat=" + sat + 
                " time=" + time + 
                " lineId=" + lineId + 
                " distanceparent=" + distanceparent + 
                " timeparent=" + timeparent + 
                " loc=" + loc + 
                "]";
    }

    /**
     * 
     */
    public Point() {
    }

    /**
     * 
     * @return
     */
    public Loc getNewLoc() {
        return new Loc();
    }

    /**
     * @return the ele
     */
    public Double getEle() {
        return ele;
    }

    /**
     * @param ele the ele to set
     */
    public void setEle(Double ele) {
        this.ele = ele;
    }

    /**
     * @return the fix
     */
    public Double getFix() {
        return fix;
    }

    /**
     * @param fix the fix to set
     */
    public void setFix(Double fix) {
        this.fix = fix;
    }

    /**
     * @return the sat
     */
    public Double getSat() {
        return sat;
    }

    /**
     * @param sat the sat to set
     */
    public void setSat(Double sat) {
        this.sat = sat;
    }

    /**
     * @return the time
     */
    public Date getTime() {
        return time;
    }

    /**
     * @param time the time to set
     */
    public void setTime(Date time) {
        this.time = time;
    }

    /**
     * @return the lineId
     */
    public String getLineId() {
        return lineId;
    }

    /**
     * @param lineId the lineId to set
     */
    public void setLineId(String lineId) {
        this.lineId = lineId;
    }

    /**
     * @return the loc
     */
    public Loc getLoc() {
        return loc;
    }

    /**
     * @param loc the loc to set
     */
    public void setLoc(Loc loc) {
        this.loc = loc;
    }

    /**
     * @return the distanceparent
     */
    public Double getDistanceparent() {
        return distanceparent;
    }

    /**
     * @param distanceparent the distanceparent to set
     */
    public void setDistanceparent(Double distanceparent) {
        this.distanceparent = distanceparent;
    }

    /**
     * @return the timeparent
     */
    public Double getTimeparent() {
        return timeparent;
    }

    /**
     * @param timeparent the timeparent to set
     */
    public void setTimeparent(Double timeparent) {
        this.timeparent = timeparent;
    }
}
